﻿/*
* ============================================================================
* GNU Lesser General Public License
* ============================================================================
*
* BYDAN - Free Java BYDAN library.
* Copyright (C) 2008 
* 
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* 
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* Lesser General Public License for more details.
* 
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA.
* 
* BYDAN Corporation
*/
package ByDan.AulaVirtual.Presentation.Reporte.Source;

import java.util.ArrayList;
import ByDan.Framework.AulaVirtual.Business.Entities.GeneralEntity;
import ByDan.Framework.AulaVirtual.Business.Entities.Mensajes;
import ByDan.Framework.AulaVirtual.Utils.ParameterDbType;
import ByDan.Framework.AulaVirtual.Utils.ParameterType;
import ByDan.Framework.AulaVirtual.Utils.ParametersMaintenance;
import ByDan.Framework.AulaVirtual.Utils.ParameterMaintenance;
import ByDan.Framework.AulaVirtual.Utils.ParameterValue;
import ByDan.Framework.AulaVirtual.Utils.ParametersType;
import ByDan.AulaVirtual.Business.Entities.*;
import ByDan.AulaVirtual.Business.Logic.TestLogic;
import ByDan.AulaVirtual.Business.Logic.TestLogicAdditional;
import ByDan.Framework.AulaVirtual.Utils.DeepLoadType;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import java.sql.*;

public class TestBean extends Test
{
	
	
	
	
	
	
	
	
	String field_bigIdUnidadCurricularDescripcionReporte;
	String field_bigIdTipoTestDescripcionReporte;
	
	
	String field_bitEstadoDescripcionReporte;
				
	public TestBean  ()
    {
 		field_bigIdUnidadCurricularDescripcionReporte="";
 		field_bigIdTipoTestDescripcionReporte="";
 		
 		
 		field_bitEstadoDescripcionReporte="";
    } 
	
	     
    
	public String getField_bigIdUnidadCurricularDescripcionReporte()
	{
		return field_bigIdUnidadCurricularDescripcionReporte;
	}
    
	public String getField_bigIdTipoTestDescripcionReporte()
	{
		return field_bigIdTipoTestDescripcionReporte;
	}
    
    
    
	public String getField_bitEstadoDescripcionReporte()
	{
		return field_bitEstadoDescripcionReporte;
	}
	
    
	public void setField_bigIdUnidadCurricularDescripcionReporte(String newField_bigIdUnidadCurricularDescripcionReporte)throws Exception
	{
		try
		{
			this.field_bigIdUnidadCurricularDescripcionReporte=newField_bigIdUnidadCurricularDescripcionReporte;
		}
		catch(Exception ex)
		{
			throw ex;
		}
	}
    
	public void setField_bigIdTipoTestDescripcionReporte(String newField_bigIdTipoTestDescripcionReporte)throws Exception
	{
		try
		{
			this.field_bigIdTipoTestDescripcionReporte=newField_bigIdTipoTestDescripcionReporte;
		}
		catch(Exception ex)
		{
			throw ex;
		}
	}
    
    
    
	public void setField_bitEstadoDescripcionReporte(String newField_bitEstadoDescripcionReporte)throws Exception
	{
		try
		{
			this.field_bitEstadoDescripcionReporte=newField_bitEstadoDescripcionReporte;
		}
		catch(Exception ex)
		{
			throw ex;
		}
	}
		
	public static ArrayList<TestBean> TraerTestBeans(ArrayList<Test> tests)throws Exception
    {
		ArrayList<TestBean> testbeans=new ArrayList<TestBean>();	
		TestBean testbean;
				
		try
		{
			for(Test test:tests)
			{
			
				testbean=new TestBean();
				
				testbean.setId(test.getId());	
				testbean.setVersionRow(test.getVersionRow());	
				testbean.setField_bigIdUnidadCurricular(test.getField_bigIdUnidadCurricular());
				testbean.setField_bigIdUnidadCurricularDescripcionReporte(TestLogicAdditional.getRelationship_UnidadCurricularDescripcion(test.getRelationship_UnidadCurricular()));	
				testbean.setField_bigIdTipoTest(test.getField_bigIdTipoTest());
				testbean.setField_bigIdTipoTestDescripcionReporte(TestLogicAdditional.getRelationship_TipoTestDescripcion(test.getRelationship_TipoTest()));	
				testbean.setField_strCodigo(test.getField_strCodigo());	
				testbean.setField_strObservaciones(test.getField_strObservaciones());	
				testbean.setField_bitEstado(test.getField_bitEstado());
				testbean.setField_bitEstadoDescripcionReporte(TestLogicAdditional.getEstadoDescripcion(test));	
				
					
							
				testbeans.add(testbean);
			}
		}
		catch(Exception ex)
		{
			throw ex;
		}
		
		return testbeans;
    }
}
